const AJAX = getApp().ajax,
      $wx = getApp().$wx,
      getColor = getApp().globalData.getColor;

Page({
  data: {
    getColor: getColor()
    
  },
  
  onLoad(){
    $wx.setNavColor(getColor().val);
  },
  
  onShareAppMessage(){},

  formSubmit(e){
    let form_obj = e.detail.value,
        pages = getCurrentPages(),
        prevPage = pages[pages.length - 2];
    
    wx.navigateBack({
      success(){
        prevPage.setData({
          remarkInfo: form_obj.remark
        });
      }
    });
  }
});